Skip to content

feat(spec,service-knowledge)!: knowledge_source is a governed metadata type with its loader, its registry and two authoring guards - #37676

Merged
objectstack-fleet[bot] merged 38 commits into
mainfrom
claude/project-thread-23bpce
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 38 commits into
mainfrom
claude/project-thread-23bpce

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #37304

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37310

维护者速读

  • 用户能看到什么变化:知识源成为一种正式的应用配置,可以随应用一起发布,也可以在 Studio 里新建和修改;保存后平台自动建立、更新或清除对应的检索索引。旧写法升级时会被明确拒绝,迁移命令会列出每一处要改的地方。
  • 为什么做:属于“知识检索平台化”专题,让应用写一份知识源配置就有可用的检索,并且谁能建知识源、能索引哪些数据都有人管。
  • 出错会怎样:只影响用到知识检索的应用。旧配置没迁移时会报出要改的位置,不会悄悄丢数据或建错索引;新增的“管理知识源”权限默认只有平台管理员有;回退本改动即可恢复原状。
  • 要你做什么:批准一次。这是一次不兼容的协议收紧,改了两份对外技能文件(各一两行),改动量也超过三千行,按规则要你批准后才能合并。

What changes

New metadata type: knowledge_source. Registered in the metadata type registry with the one schema KnowledgeSourceSchema; a stack carries its sources in the new top-level collection knowledgeSources (*.knowledge-source.ts or .yml). An item can be created and changed at run time (Studio, MCP) and takes no environment overlay. Studio's menu lists the type under AI, and ADR-0084's type table carries its row.

New platform capability: manage_knowledge_sources. Platform administrators hold it by default. Nothing else grants it.

  • The schema is strict. An undeclared key is refused. id becomes name, source.contentFields becomes source.content, a non-empty list of field names; '*' is refused with the instruction to list the fields, and an empty-string member is refused too (it names no field). embedding, vectorStore, adapterConfig, refresh.cron and the file / http source kinds are retired with their ADR-0087 entries (three conversions, six retired keys, six retired defs, four semantic entries on protocol 19). os migrate meta --from 18 lists every edit and --write applies the ones it can prove.
  • The loader (service-knowledge, knowledge-source-loader.ts). KnowledgeServicePlugin reads the published items when it starts and follows the type while it runs: an added source is registered and built when a build is due; a changed one is registered again (a changed where or metadataFields rebuilds inside the generation, a changed content or split builds a new one); a removed one is unregistered and its index dropped. The reap guard's object set follows the sources.
  • The registry (knowledge-source-registry.ts), under the maintainer's rulings on this card (record 7192063608, forks 6 and 4d, both A). A source is held by (package, name). A source registered in code belongs to no package; it shares one slot with an environment-authored item of the same name, and the second of the two to arrive is refused 409 RESOURCE_CONFLICT, naming both doors. A package's source of the same name is a second source. Code names a source by its face: the bare name for the package-less one, NAMESPACE-NAME for a package's; a bare name several sources answer to is refused 409, naming the candidates. search hits carry the face as sourceId. No IKnowledgeService signature changes for addressing.
  • IKnowledgeAdapter.dropSource?(ctx), implemented by knowledge-memory, knowledge-pgvector and knowledge-turso; the contract suite (@objectstack/service-knowledge/testing) takes implements.dropSource. An adapter reads the source's index key from ctx.source.name (it was ctx.source.id): the bare name for a package-less source, so an existing index is found under the same key and nothing is rebuilt.
  • Guard one: the capability. A write of a knowledge_source through /meta (REST and the dispatcher: save, publish, rollback, delete) and through the MCP draft door needs manage_knowledge_sources beside manage_metadata: 403 PERMISSION_DENIED naming the capability, 401 for an anonymous caller. It is one row in the existing per-type table META_TYPE_WRITE_CAPABILITIES (packages/rest/src/meta-item-read-gate.ts), so the three doors that already ask that table ask it for this type too. The package doors ask it as well (maintainer's ruling A, record 7207325373 on knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304): each of the twelve doors that write an existing package (enable, disable, publish, publish-drafts, discard-drafts, the commit revert, rollback, revert, adopt-orphans, duplicate, the manifest update, delete) refuses a caller without the capability 403 when the package holds a knowledge source: an item, a pending draft, or, for the commit revert and the rollback, a commit that touched one. A package that holds none is written as before; a holding that cannot be read refuses 503. Two doors are not asked, see Acceptance notes.
  • Guard two: source admission at save. The same doors save a source only when its author may themselves search what it would index: an object of a disabled package, an object the API does not serve for search, a system object without enable.aiReadable, or a field the author may not query refuses the save 403, naming the object or the field; a verdict that cannot be reached refuses 503. The fields a source's where reads are judged with the fields it serves, at save and at search. A knowledge service that is registered and cannot be resolved refuses the save 503 at every door (REST, the dispatcher, MCP). The duplicate door admits each knowledge source it would copy for the caller before anything is copied, and refuses the whole copy when one is refused. Over MCP the human is judged.
  • The push door leaves. IKnowledgeService.indexDocument and deleteDocument are removed with the file / http branches that served them.
  • Removed exports, twelve names from @objectstack/spec/ai. The embedding module: EmbeddingModelSchema, VectorStoreSchema, VectorStoreProviderSchema and the types EmbeddingModel, VectorStore, VectorStoreProvider (the knowledge source was their only composer). The retired source kinds: FileKnowledgeSourceSchema, HttpKnowledgeSourceSchema, KnowledgeSourceKindSchema and the types FileKnowledgeSource, HttpKnowledgeSource, KnowledgeSourceKind. The changeset lists the same twelve.
  • Boot notice (packages/objectql). A deployment that holds knowledge_source items and mounts no knowledge service says so once at boot, at warn, naming the items; it is not a boot refusal.
  • CLI. os knowledge status prints the package that holds a source and no longer a source kind.
  • Showcase. examples/app-showcase ships showcase_task_notes (object showcase_task, adapter memory) and mounts the knowledge service and the memory store.
  • Docs. content/docs/protocol/knowledge.mdx and content/docs/ai/knowledge-rag.mdx describe the type, the loader, who may author a source, and one name per source; the generated references follow.
  • Skills (Tier H), enumeration row only, under ruling A on Adding a top-level key or a bound enum member reds two-way skill gates in both card orders under the skills split #32584: knowledgeSources joins the top-level key list in skills/objectstack-platform/SKILL.md. skills/objectstack-ai/SKILL.md's compiled supportKb example changes two keys (id to name, contentFields to content) because the old spelling is now refused at parse. Teaching the type (prose, tables, evals) rides skills/objectstack-ai and the MCP authoring contract teach knowledge_source as metadata: name, an explicit content list, no wildcard, the retired keys, and a create seed #37310.
  • One ceiling, raised by the row's measured delta and by no more (scripts/check-skills-token-ratchet.mjs): skills/objectstack-platform/SKILL.md was at zero headroom (24603 priced bytes, 6151 tokens, after feat(core): requires knowledge mounts the knowledge service and one vector store #37442's row); the knowledgeSources row adds 20 bytes, so the priced text is 24623 bytes, 6156 tokens, and the ceiling moves 6151 to 6156, pinned at the measurement. Nothing else in the file is cut and nothing rides along. skills/objectstack-ai/SKILL.md stays at 6799 tokens under its ceiling of 6801.
  • The two rulings the raise path names, quoted:

Tests

  • packages/spec/src/ai/knowledge-source.test.ts: the strict schema, '*' refused, an empty-string member refused (and minLength: 1 in the JSON Schema), every retired key answered with its prescription.
  • packages/services/service-knowledge/src/__tests__/knowledge-source-registry.test.ts (new): the slot rules above, both orders of arrival at each door, face resolution and the 409 with its candidates.
  • .../knowledge-source-loader.test.ts (new): boot read, add, change (each of the two rebuild arms), remove with dropSource, an adapter without dropSource, the reap guard following the sources.
  • .../knowledge-source-admission.test.ts: each refusal of guard two and its fail-closed 503; the fields where reads (keys, $and / $or / $not, { $field } comparands) judged at save and at search.
  • The adapter contract suite with dropSource: true in knowledge-memory and knowledge-turso; knowledge-pgvector declares it in contract.live-postgres.test.ts (see Remaining).
  • packages/rest/src/meta-type-write-capability.test.ts: every write shape of a knowledge_source for a caller with manage_metadata alone, with manage_platform_settings, and with a record grant: 403 PERMISSION_DENIED, store unchanged, no protocol call; a holder of both saves, publishes, rolls back and resets; the capability without manage_metadata is refused by the door's own admission.
  • packages/rest/src/meta-write-door-capability-enumeration.test.ts, packages/runtime/src/domains/meta-save-capability-gate.test.ts, packages/runtime/src/domains/mcp-authoring.test.ts: guard two at REST, the dispatcher and the MCP save door (the human is judged); on a real kernel, a knowledge service whose factory throws answers 503 at the dispatcher and at MCP, and one never registered is not asked.
  • packages/runtime/src/domains/meta-type-write-capability-parity.test.ts: REST and the dispatcher answer the same for the new row.
  • packages/runtime/src/domains/packages-knowledge-source-gate.test.ts (new): each of the twelve package doors refuses a manage_metadata-only caller when the package holds a source (item or draft) and the writer never runs; a holder goes on with no listing read; a package with none answers as before; a listing that throws refuses 503; the engine's own call is not asked; the commit revert and the rollback read the timeline; the duplicate door's admission of each copied source; a host with no metadata store holds none; the install door and the ensure-customization door are not asked.
  • packages/runtime/src/domains/packages-ensure-customization.test.ts: a base that holds a knowledge source (a registered item and a stored row) gets a pair that holds none, and the door writes one manifest and no row.
  • packages/objectql/src/knowledge-source-unserved.test.ts (new): the boot notice.
  • packages/metadata-core/src/knowledge-source-save-admission.test.ts (new): the admission seam.

Acceptance notes

  • Governed (Tier H) and over 3000 changed lines: draft until the maintainer's approval. The diff touches skills/** and declares a narrowing.
  • Rulings this PR implements: record 7192063608 on knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304 (forks 6 and 4d, both A); earlier on the same card Q1 = B (the type sits in ADR-0150's bucket 3) and Q2 = B (manage_knowledge_sources beside manage_metadata, platform administrators only); and ruling A of 2026-11-27 (record 7207325373): every write door of an existing package asks the capability when the package holds a knowledge source, and install stays unasked. The ADR-0150 rows ride ADR-0150: record the maintainer's ruling on #37304 addendum points 4 and 6 (code-registered knowledge sources) #37545. One ADR line is edited here, with the zone's approval (claim comment 7203310811 on knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304, amended by 7204020473): ADR-0084's type table gains the knowledge_source row its item 6 prescribes for a type registered after the ruling (AI, ai, 5, 高级), spelled as the ai_context row is. Nothing else under docs/adr/** changes.
  • The loader's signal is protocol.onMetadataMutation (a save, a publish, a delete, a revert) plus the metadata:reloaded hook (a package published, installed or removed, a dev reload), not metadataService.subscribe. After either it reads the published set again and reconciles, so a missed event is repaired by the next one.
  • Guard two is not asked where no knowledge service is mounted (there is nothing to ask, and the item is inert there), nor for a system write.
  • Two package doors are not asked the new capability (limits). The install door (POST /packages): a package's source arrives by that door's own admission, as the ruling leaves it. The ensure-customization door (POST /packages/:id/ensure-customization): it writes nothing of the base and creates an empty pair, so it creates, changes and removes no knowledge source; the seat confirmed this reading on the condition that the pair holds no source, which packages-ensure-customization.test.ts pins.
  • The package gate reads before it answers. For a caller without the capability the twelve doors read the package's drafts and items (and its commits, for the two timeline verbs) before the door's own request checks. A host with no metadata store at all (the table was never created, or the engine holds no sys_metadata object) reads as holding none, by the same rule the protocol's overlay reads use; any other failed read refuses 503.
  • The read-side author exemption stays keyed on manage_metadata.
  • A bare name two sources answer to is refused 409 at the call that names it (resolveSourceRef), listing the candidates; both sources register. Where the host cannot place a package's namespace, the package's face is its bare name, and that name answers 409 for both sources until the package is placed.
  • The four narrowings the ADR-0150 addendum asks this card to declare, each counted on this tree: the install refusal inside a namespace (two packages of one namespace holding a source of one name): 0. The name grammar (a source whose name the grammar refuses): 0. The 409 for a bare name two packages hold: 0. The package-less row under a name a package holds: 0. The tree holds one knowledge source, showcase_task_notes (examples/app-showcase/src/ai/task-notes.knowledge-source.ts), and no first-party code registers one through the plugin door.
  • KnowledgeIndexStatusEntry.kind is removed with the source kinds; packageId is added.
  • One ADR-0087 marker. The gate allows exactly one marker per breaking changeset, so the changeset carries registered … and names indexDocument / deleteDocument in prose: they are runtime-interface members with no metadata form, and the compiler reports each call (TS2339).
  • The boot notice adds one boot read of knowledge_source rows on a kernel that does not hydrate from its database; it registers nothing (plugin.integration.test.ts pins the permitted reads and now names this one).
  • pgvector dropSource and a concurrent build in another process: the drop retires the active and the building generation in one transaction but does not hold the builder lock across it, so a build already running in another process could still write its generation afterwards. Not changed here; it is a candidate follow-up.
  • service-knowledge: a knowledge source that names an unregistered adapter fails silently (boot clean, search answers [], index throws a bare Error) #37479 (unregistered adapter) is not folded in. The loader runs after publish, so it is not a refusal point for publish; feat(core): requires knowledge mounts the knowledge service and one vector store #37442 adds the coded refusal for an unmounted adapter.
  • The showcase mounts the two plugins by hand rather than declaring requires: ['knowledge'] (feat(core): requires knowledge mounts the knowledge service and one vector store #37442): the token mounts a libSQL or pgvector store, which needs a configured embedder, and the demo runs on the in-memory store with none. A host that mounts the service itself keeps its own, as feat(core): requires knowledge mounts the knowledge service and one vector store #37442 specifies.
  • Merged with main three times (no rebase). The first merge (at 45ed022b) followed feat(core): requires knowledge mounts the knowledge service and one vector store #37442, fix(service-knowledge): a build that loses its lease stops at the next page, and a stalled build is cancelled #37570 and fix(cli): os knowledge rebuild and status give the right answer behind a load balancer #37578: four textual conflicts (the migration registry template, the CLI knowledge test fixture, the pgvector adapter's search refusal, the knowledge service's reindex chain and unmounted-adapter refusal). Code and fixtures those PRs wrote against the 18 source shape follow the 19 shape here: source.id is source.name, contentFields is content, reportUnmountedAdapters names a source by its face, and the unmounted-adapter index test calls reindexSource now that indexDocument is gone. The second merge (at c2bfa3ef7) was forced by a conflict: main had gained its own protocol 19 conversion (permission-view-all-fields-beside-record-bypass), so the conversion registry, the migration registry template and the retired-key pin now carry both sets, sorted as the registry sorts them; packages/spec/authorable-surface/ai.json was merged three ways by hand so that this PR's removals and main's new ai/Skill:context both stand; every generated spec surface was regenerated afterwards. The third merge (at 8b9b9d235) was forced by fix(lint,metadata-core): a skill's context naming a pack a declared dependency ships no longer warns; the ADR-0150 D3 rule moves to metadata-core #37723, which moved the ADR-0150 D3 rule into packages/metadata-core/src/package-scoped-resolution.ts: core's file is taken from main (a re-export) and the knowledge_source row with its comment sits in metadata-core's PACKAGE_SCOPED_TYPES; default-changes.ts keeps both protocol 19 entries (main's ai/AIModelConfig:provider and this PR's ai/KnowledgeSource:refresh); the Studio menu placement pin takes main's move of position and keeps this PR's row. The merge is its own commit and packages/spec/authorable-defaults/ai.json was regenerated in the next one (737f44341).
  • The declared default of ai/KnowledgeSource:refresh sits under major 19 in default-changes.ts (no parsed value changes: the published JSON Schema now states the {} the parser always applied).
  • Enumeration pins found by CI, not by the first local pass. The first head was verified on the packages the change edits. CI then failed on tests in packages it does not edit, each a list that counts metadata types or the platform administrator's capabilities: the owner-stamp boot fixture and the unbundled-type list (packages/metadata), the tier list (packages/metadata-protocol), the type-label counts (packages/platform-objects), four golden grant lists (packages/plugins/plugin-security), and the generated zh-Hant locale. Each gained the one entry; no product code changed for them. The suites of those packages and the workspace type check now run locally as well (see Verification).
  • Review round 1. The contract review on 45ed21271 (comment 7206413701) read PASS with findings, and the seat ordered a rework (7206423476). This head answers it: authoring guards cover more doors and more of what a source reads (the package doors, the duplicate door, the fields where reads, the service lookup at the dispatcher and at MCP), the content member refuses the empty string, the changeset lists the twelve removed exports, and this body is corrected on the face collision and states the narrowing counts. The findings' detail is with the seat. Two nits are carried by cards the zone files under knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304 (ADR-0084 prose; tombstone wording for code-door registrants).
  • Existing tests edited outside the card's first surface (claim amended by the zone, comment 7207505784 on knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304), each because a package door now reads the package for a caller without the capability:
    • packages-publish-drafts-request-conformance.test.ts: the real-protocol case's caller also holds manage_knowledge_sources (its engine is one nothing may touch; the case pins the protocol's own order). Assertions unchanged.
    • packages-publish-drafts-probe-caller-context.test.ts: the protocol double gains a getMetaItemsPerPackage stub beside its getMetaItems stub. Assertions unchanged.
    • package-state-host-store.test.ts (a kernel with no driver) and domains/error-passthrough.test.ts (a protocol double that throws from every member): the caller also holds manage_knowledge_sources. Assertions unchanged.
    • packages-ensure-customization.test.ts, "duplicate: 400 before a row is read": the measure changes. The door now reads the source package's knowledge sources to admit them before the copy runs, so the case counts the reads made inside protocol.duplicatePackage (still 0) instead of every engine read; it also asserts the copy was entered once.
  • Open PRs that will conflict with this one (overlap-check on this head against 12 open PR heads; main itself merges cleanly): feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 (the generated references and scripts/check-skills-token-ratchet.mjs: whichever lands second re-measures the row), refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366 (packages/spec/export-origins/ai.json). Whichever of each pair lands second merges main.

Verification

First files to read, by risk:

  1. packages/services/service-knowledge/src/knowledge-source-registry.ts: the slot and face rules.
  2. packages/services/service-knowledge/src/knowledge-source-loader.ts: what each metadata event does to an index.
  3. packages/rest/src/meta-item-read-gate.ts (META_TYPE_WRITE_CAPABILITIES) and packages/metadata-core/src/knowledge-source-save-admission.ts: the two guards.
  4. packages/runtime/src/domains/packages.ts (refuseKnowledgeSourcePackageWrite, refuseDuplicatedKnowledgeSources): the guards at the package doors.

Two-minute check: pnpm --filter @objectstack/service-knowledge exec vitest run --maxWorkers=2 src/__tests__/knowledge-source-registry.test.ts src/__tests__/knowledge-source-loader.test.ts.

Head cf128e59f (review round 1). Verified so far on this head, locally, every heavy run under scripts/pm/os-verify-lock.sh: build exit 0; @objectstack/runtime full suite exit 0 (657 files, 13676 passed, 25 skipped); @objectstack/metadata-core and @objectstack/core exit 0; tsc --noEmit on packages/runtime exit 0. Running now on the same head, and written here when they end: the other package suites, the workspace type check, the derived gates, the full dogfood battery and the ablations. CI on this head is in progress. The previous head's readings (45ed21271: 62 check runs green, 185 gates, the dogfood battery, six ablations) are in the os-dev report, comment 7206197293 on #37304.

Skills readings (the diff touches skills/**)
Lines before Lines after Tokens before Tokens after
skills/objectstack-platform/SKILL.md 421 421 6151 6156 (ceiling 6156)
skills/objectstack-ai/SKILL.md 486 486 6799 6799 (ceiling 6801)
All SKILL.md files together 4961 4961
Ratcheted (authored) bundle 199660 199665 (ceiling 204478)

skills/objectstack-ai/references/_index.md is generator-owned (53 lines to 52: the embedding module's row leaves, the knowledge source's row is reworded) and is measured, not ratcheted. "Before" is main at the third merge (8b9b9d235), read with the same script; the bundle's before figure is this tree's reading less the row's 5 tokens.

Remaining

  • The same reviewer's read of the round 1 delta (45ed21271..cf128e59f), then the seat's hand-off.
  • knowledge-pgvector's dropSource contract cases have not run anywhere yet: there is no pgvector in the build container, and the job with a PostgreSQL service does not run on pull_request. Their first run is the merge queue.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx

… schema, tables, kit)

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…d keys and defs, semantic entries), pins

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…ackage, name)

The knowledge service keeps its sources in a registry keyed by (package,
name) and filled through two doors that parse with the one schema: the
metadata loader (boot, a published knowledge_source change, a metadata
reload) and registration in code, which takes the package-less slot and
refuses a retired key with its prescription instead of converting it.

A caller names a source by its face; a bare name resolves by ADR-0150 D3
and a name several sources answer to is refused 409. An index is keyed by
the source's index key, so two packages' sources of one name share no
document. A removed item is unregistered and its index dropped; the reap
guard's object set follows the sources.

The file/http arms, the '*' content member, indexDocument and
deleteDocument are gone with their branches.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
… write doors

Guard one is a row in the existing per-type write capability table: a
knowledge_source write through /meta (REST and the dispatcher) and through
the MCP draft door needs manage_knowledge_sources beside manage_metadata.

Guard two asks the knowledge service to admit an authored source for its
author before it is saved: the author must themselves be able to search
what the source would index. A verdict that cannot be reached refuses 503;
over MCP the human is judged.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…e as the index key

knowledge-memory, knowledge-pgvector and knowledge-turso remove every
generation of a source, the one under construction included, and what
they recorded about the index. An adapter reads the index key from
ctx.source.name. os knowledge status prints the holding package and no
source kind.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…edge service

A deployment that holds knowledge_source items and mounts no knowledge
service is valid and inert: one warn line names the items. The type joins
the package-scoped read types and the namespace co-owner tests.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…, skills rows, changeset

The showcase ships a task-notes source over the memory adapter. The
protocol and RAG pages describe the type, its loader, who may author a
source and one name per source. Generated references, the liveness ledger
row and the changeset with its ADR-0087 registrations ride along.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
The variant ledger and the empty-state registry drop the entries of the
retired file and http source kinds; llms.txt counts one module fewer under
ai; the platform checklist waives the new kind with what retires the
waiver; the metadata form bundles carry the type's label in every locale.

skills/objectstack-platform/SKILL.md keeps only the knowledgeSources row:
the two comment trims that made room for it are reverted (ruling A on
#32584 allows the row and nothing else).

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…ases the gates ask for

The system-context page keys the knowledge row to the symbols that hold
the elevation reads now, the save admission included. Four edited suites
pay their first load of a dynamically imported package at collection, and
the showcase aliases the knowledge service and the in-memory store to
source.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…-23bpce

Conflicts: the migration registry template (main's wording of the two
major-19 regions kept), the CLI knowledge test fixture, the pgvector
adapter's search refusal and the knowledge service's reindex chain and
unmounted-adapter refusal. Code and fixtures main added against the 18
source shape (id, contentFields, indexDocument) follow the 19 shape, and
the RAG guide separates writing a source from wiring the plugins by hand.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…r 19, skills ceiling by the row's delta

The spec package reads 19 on main, so the declared default of
ai/KnowledgeSource:refresh moves from the major-18 rows to major 19, the
only major that authorises it now.

skills/objectstack-platform/SKILL.md: the ceiling moves 6151 -> 6156 for
the knowledgeSources enumeration row alone (+20 priced bytes), under
ruling A on #32584 and #32673 letter A. Nothing else in the file changes.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
The teaching of knowledge_source in skills/objectstack-ai rides #37310.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
… drop the embedding row from the protocol map

The three conversions admitted with the type join the removal-version pin
(every retired key refused from 19 on), and the protocol map no longer
links the removed embedding module.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…-23bpce

Major 19's conversion list stacks both sides: the permission conversion main
landed and the knowledge source's three, each at its own order.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
The authorable-surface baseline keeps the knowledge source's retired lines
out and takes main's new skill key; api-surface, export-origins and the
skills reference index are regenerated from the merged tree.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation protocol:ai tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 12 package(s): @objectstack/cli, @objectstack/metadata-core, @objectstack/metadata, @objectstack/objectql, @objectstack/platform-objects, @objectstack/knowledge-memory, @objectstack/knowledge-pgvector, @objectstack/knowledge-turso, @objectstack/rest, @objectstack/runtime, @objectstack/service-knowledge, @objectstack/spec, touching 325 documentable anchor(s). ⚠️ 34 changed file(s) yielded no anchor (packages/metadata-core/src/index.ts, packages/plugins/knowledge-memory/README.md, packages/plugins/knowledge-pgvector/README.md, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

93 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json ddc96d8a4280c69305dd541005cacfbe3e58f4c5.

⛔ 22 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 34 changed file(s) yielded no anchor (packages/metadata-core/src/index.ts, packages/plugins/knowledge-memory/README.md, packages/plugins/knowledge-pgvector/README.md, …) — pages documenting those are invisible to this run
  • 3 anchor(s) matched too much of the corpus to be a work list: PERMISSION_DENIED (literal, 56 pages), VALIDATION_ERROR (literal, 39 pages), /meta/:type/:name (route, 53 pages)
  • 50 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 192 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json ddc96d8a4280c69305dd541005cacfbe3e58f4c5 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 588995420552e436918b6ad16fddab388edb120e — the merge of head 261dc7527bbb002633b5724a365f3e3e3be4f15a into base ddc96d8a4280c69305dd541005cacfbe3e58f4c5, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 588995420552e436918b6ad16fddab388edb120e && git checkout 588995420552e436918b6ad16fddab388edb120e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ddc96d8a4280c69305dd541005cacfbe3e58f4c5 261dc7527bbb002633b5724a365f3e3e3be4f15a && git checkout -B drift-repro ddc96d8a4280c69305dd541005cacfbe3e58f4c5 && git merge --no-ff 261dc7527bbb002633b5724a365f3e3e3be4f15a

node scripts/docs-audit/affected-docs.mjs --json ddc96d8a4280c69305dd541005cacfbe3e58f4c5

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs ddc96d8a4280c69305dd541005cacfbe3e58f4c5 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…orm-objects count the knowledge source

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…edge source strings

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
… item 6 prescribes

One row under AI (order 5, 高级), in the spelling of the ai_context row; the
Studio menu placement test reads this table.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…g main

The merge of main at 9b50fed kept this branch's side of two generated
paths both sides had moved. Regenerated on the merged tree: the reference
index counts main's new ui page (17 pages, 185 schemas; 222 pages and
1730 schemas in all), and the ai authorable surface carries main's
retired marker on AIModelConfig:provider.

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对 (delta 5, merge + regen)

Head-sha: e2949f08100433f8dd6754eafc7347511ebabad5
ACCEPT — L1, seat repo:objectstack#5

Regen-provenance: e958f857c5 merges main at 9b50fedbfa and resolves its two conflicts by hand. e2949f0810 regenerates content/docs/references/index.mdx and packages/spec/authorable-surface/ai.json and touches nothing else. The seat compared this PR's +/- lines against each merge base (ff9ee21084 before, 9b50fedbfa after). They match, apart from main's schema-count totals (230→231, 1729→1730, 221→222) and the registry.ts header comment: the agent's and the knowledge source's conversions also tie at order: 2, and the file's rule settles that tie by id. No code, conversion entry or test changes. Contract records 7206413701, 7208152877 and 7208323495 still cover this head.

Gates: CI is green on this head (62 succeeded, 0 failed). The mergeable state is clean. The dogfood battery on this head is os-dev report 7211969284 on #37304. The landing terms are unchanged.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Landing at e2949f08100433f8dd6754eafc7347511ebabad5. The maintainer approved in the seat thread (2026-11-27 02:12Z, 「37676 批准」), and os-zhuang APPROVED. Seat ACCEPT 7208335574, with notes 7209946198, 7210090045 and 7211991570. Contract records 7206413701, 7208152877 and 7208323495. Dogfood battery on this head: os-dev report 7211969284 on #37304. CI is green, and mergeable is clean.

…-23bpce

# Conflicts:
#	packages/cli/test/metadata-type-schema-gate.test.ts
#	packages/metadata-protocol/src/protocol.legacy-overlay-delete.test.ts
#	packages/platform-objects/src/apps/translations/bare-type-display-echo-decisions.test.ts
#	packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts
#	packages/runtime/src/app-plugin.ts
#	packages/spec/liveness/README.md
#	packages/spec/scripts/liveness/check-liveness.mts
#	packages/spec/src/kernel/metadata-create-seeds.test.ts
#	scripts/check-skills-token-ratchet.mjs
#	scripts/check-stack-collection-maps.mjs
#	ui/packages/i18n/src/locales/ar.ts
#	ui/packages/i18n/src/locales/de.ts
#	ui/packages/i18n/src/locales/en.ts
#	ui/packages/i18n/src/locales/es.ts
#	ui/packages/i18n/src/locales/fr.ts
#	ui/packages/i18n/src/locales/ja.ts
#	ui/packages/i18n/src/locales/ko.ts
#	ui/packages/i18n/src/locales/pt-BR.ts
#	ui/packages/i18n/src/locales/ru.ts
#	ui/packages/i18n/src/locales/zh-Hans.ts
#	ui/packages/i18n/src/locales/zh-Hant.ts
The merge of main at e69fa46 took no text merge on six generated
paths both sides had moved. Regenerated on the merged tree, so each
carries both the form type main admitted and the knowledge source this
branch admits: the meta URL spelling data, the ai export origins, and
four reference pages (the index, the metadata plugin, the metadata API
and the assembled package API).

Claude-Session: https://claude.ai/code/session_01Utp6CZe3KTAXogcUJuvYEx
Co-authored-by: Claude <noreply@anthropic.com>
…-23bpce

# Conflicts:
#	scripts/check-skills-token-ratchet.mjs
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ae2b4ac153af62b7d7e667018471be3e0a17371e
Local-runs: none
Scope: packages/spec/src/conversions/registry.ts, packages/spec/src/meta-spelling/meta-url-data.generated.ts, skills/objectstack-ai/SKILL.md + scripts/check-skills-token-ratchet.mjs, packages/spec/llms.txt, packages/spec/authorable-surface/ai.json, packages/spec/export-origins/ai.json, packages/spec/liveness/README.md, packages/spec/scripts/liveness/check-liveness.mts, packages/spec/src/kernel/metadata-create-seeds.test.ts, packages/runtime/src/app-plugin.ts, scripts/check-stack-collection-maps.mjs, packages/cli/test/metadata-type-schema-gate.test.ts, packages/metadata-protocol/src/protocol.legacy-overlay-delete.test.ts, packages/platform-objects/src/apps/translations/bare-type-display-echo-decisions.test.ts, packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts, the eleven locale files under ui/packages/i18n/src/locales, content/docs/references/index.mdx, content/docs/references/api/metadata.mdx, content/docs/references/api/package-api-assembled.mdx, content/docs/references/kernel/metadata-plugin.mdx
Security-touching: yes

Delta round 3. It builds on the delta record 7208323495 (head 20f929970dba273e61cb39ec5364bfda018897b5), the delta record 7208152877 and the full-round record 7206413701. Everything those rounds judged and the nine hops below do not move stands as recorded there.

Inputs read: the five merges of main as remerge diffs (fafa914c6c, d92226cbaa, e958f857c5, 00d616e553, ae2b4ac153), the four commits between them whole (ebc0b7ce8d, 2a2218d120, e2949f0810, dfcdfb8aaa), the PR's own change against each base (git diff 8b9b9d2355 20f929970d beside git diff b620c4b2c6 ae2b4ac153), the three earlier records, the comments on PR #37676 and card #37304 posted since 7208323495, and the check-runs on the head. Code outside the diff was read where a hop cites it: main's form rows in metadata-plugin.zod.ts, customization-package.ts and collection-item-owner-stamp.ts, and main's agent-model-provider-removed conversion.

Check-runs on the head as read at 09:31Z, 71 in all: 62 success, 9 skipped, none failed, none pending. The nine skipped are the opt-in, schedule and queue-only jobs (Temporal Conformance, Dogfood Verify CLI, the unexpanded Dogfood matrix row, UI Published Artifacts, the schedule gate, the packed-tarball smoke, the 18.x upgrade harness and the two queue verdicts). Test Core 1 to 10 of 10, Test UI 1 to 16 of 16, the four Type Check lanes, every Lint lane, Spec property liveness, Check Changeset and the PR-side Governed Surface Queue Guard are success.

One fact for the seat, outside the verdict: at 09:31Z GitHub reads this head as not mergeable. main moved three commits past b620c4b2c6 (to 2a4ad3043c), and twelve paths this PR changes are among theirs (the eleven generated metadata-forms bundles and object-lifecycle-panel-echo-decisions.test.ts). This record names ae2b4ac153 and no later head.

① Derived judgments

No hop moves an accept-set or a public-surface judgment of the earlier rounds.

  1. The PR's own change is the same change on the new base. Both diffs name the same 221 paths with the same status. Their added and removed lines differ only in: the counts and lists that main's form type and main's new schemas moved (registry 34 to 35, bare types 16 to 17, bare leaves 27 to 28, translated rows 841 to 842, governed types 46 to 47, the llms.txt inventory 230 to 231, the reference totals, the generated enum rows that now show form), form beside knowledge_source in the rolled-back overlayable list and in GOVERNED, the two ratchet rows and their comments, the tie comment in registry.ts, and the one skill comment. The seat's pre-read holds; nothing else differs.
  2. fafa914c6c and d92226cbaa: clean merges, empty remerge diffs.
  3. ebc0b7ce8d: one trailing comment in the supportKb example of skills/objectstack-ai/SKILL.md, on a line this PR already changes, six bytes shorter. No key, value or taught shape moves. The example is the one the full round judged under card item 13.
  4. 2a2218d120: the skills/objectstack-ai/SKILL.md ceiling 6801 to 6800. Downward, to the file's measurement.
  5. e958f857c5, two hand resolutions. registry.ts keeps main's agentModelProviderRemoved and this PR's three conversions, imports and entries both in identifier order, each with its own order value; none is dropped and none of the three is re-ordered against the other two. llms.txt reads 231, which is the count of schema modules on the merged tree (this PR removes one ai module, main adds one ui module).
  6. e2949f0810: regeneration of two paths the merge driver does not text-merge. The reference index gains main's ui page and totals; authorable-surface/ai.json gains main's retired marker on AIModelConfig:provider. Neither line is this PR's.
  7. 00d616e553, 21 hand resolutions: ten pins and lists and eleven locale files. Each keeps both sides, form first and knowledge_source after it, and each count is main's count plus one. No row of either type is lost: the schema-gate map, the create-seed exemptions, APP_CATEGORY_KEYS, the liveness README row and GOVERNED, the three exemption lists of check-stack-collection-maps.mjs, and the plural labels in all eleven locales.
  8. dfcdfb8aaa: regeneration of six generated paths. Every added line is main's (form in the type enums and the URL spelling data, forms in the assembled package, the Form schema, the .metadata-form.ts origins of four existing exports). The knowledge_source rows are unchanged.
  9. ae2b4ac153: one conflict, the skills/objectstack-ai/SKILL.md ratchet row; see ③.
  10. knowledge_source against main's form type and the defineMetadataForm rename: no interaction. The two types hold separate rows in the registry, the schema map, the spelling map, the stack collections, the owner-stamp list and the override classification, and the auto-merged files keep both. form is in none of the four package-scoped and namespace lists this PR extends, and takes no row in the Studio menu placement this PR extends. This PR adds no metadata form file and calls neither defineForm nor defineMetadataForm; its only contact with the rename is the regenerated origin paths of exports it does not own. Both types meet in the derived censuses of judgment 7, and those are pinned at the sum.

② Semver level

Clause-②: yes (narrowing)

Unchanged. No hop touches the changeset; its levels, its Clause-②: yes (narrowing) and Metadata-protocol: narrowed lines and its ADR-0087 marker are byte-identical to the head record 7208323495 judged, and the PR body carries the same two lines. The hops add no narrowing and no widening of this PR's own: main's form type and main's agent conversion arrive by merge and are declared on main. Check Changeset is success on the head.

③ Boundary flags

SQL push-down: no hop adds an id materialisation or an in-app join; no hop changes a query.

  1. Conflict resolution, registry.ts (e958f857c5). The comment above MAJOR_19_CONVERSIONS now names two ties, at order: 1 and order: 2, settled by id. True against the sort in the same file (ascending order, then id) and against main's conversion, whose surface is agent.model.provider: it touches no key of a knowledge source, so the tie at order: 2 between it and the content-list rename decides nothing either conversion reads.
  2. Conflict resolution, llms.txt (e958f857c5): as judgment 5.
  3. Conflict resolutions of 00d616e553: as judgment 7. Both echo-decision tests keep main's dated note for form and renumber this PR's note after it.
  4. Skills ratchet, skills/objectstack-ai/SKILL.md row. Three moves, all downward and each to the measurement: no headroom is taken and none is left. ebc0b7ce8d shortens the file, 2a2218d120 lowers the row 6801 to 6800, and the last merge sets 6799 where main had lowered its own row to 6800 for a five-byte cut of its own. At the head the file is four bytes shorter than main's, and the script's own formula gives 6799 for it and 6800 for main's. Shrink-only, which needs no ruling.
  5. Skills ratchet, skills/objectstack-platform/SKILL.md row. 6153 to 6158 where records 7206413701 and 7208323495 read 6151 to 6156. The row's delta is the same 20 bytes and the same five tokens; the base moved because main's forms row landed first (6151 to 6153, its own card). At the head the file reads 24632 priced bytes, 6158 tokens, pinned at the measurement. The comment cites the same two rulings (6819475461, 6840575378), so the basis the full round accepted is the basis here.
  6. Regeneration provenance. The eight regenerated paths are the eight the merge driver named as not text-merged, each in a commit of its own after its merge; the source gates that hold them byte-equal are success on the head.
  7. Dev flags. No report on the card names a head later than e2949f0810, so no dev flag exists for the last four hops. Reports 7209929034, 7210725851 and 7211969284 carry no open_questions entry that this record leaves unanswered; their accounts of the first five hops agree with what the remerge diffs show.
  8. The escalations of the full round stand untouched: the pgvector live cells run only where a PostgreSQL service does, and skills/objectstack-ai and the MCP authoring contract teach knowledge_source as metadata: name, an explicit content list, no wildcard, the retired keys, and a create seed #37310 lands before the next publish.

④ Design judgment

On what the hops move only. The registry tie is settled by the file's own rule and is between conversions of disjoint types. The censuses that count metadata types are each the sum of two independent arrivals, and the generated pages agree with them. The two ratchet rows sit at their files' measurements. Nothing in the hops changes what a knowledge source parses, who may author one, or what a caller is served.

No must-fix, no should-fix.

N2, N5 and N6 stand as the seat accepted them in 7206423476; none is touched here.

Implemented-by: claude/project-thread-23bpce
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 261dc7527bbb002633b5724a365f3e3e3be4f15a
Local-runs: none
Scope: packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts + the eleven *.metadata-forms.generated.ts bundles under packages/platform-objects/src/apps/translations
Security-touching: yes

Delta round 4. It builds on the delta record 7214835942 (head ae2b4ac153af62b7d7e667018471be3e0a17371e, PASS) and the records that one names. Everything those rounds judged and the one hop below does not move stands as recorded there.

The hop is one merge: 261dc7527b, parents ae2b4ac153 and main 2a4ad3043c (#37839, #37869, #37876).

Inputs read: the remerge diff of 261dc7527b, the PR's own change against each base (git diff b620c4b2c6 ae2b4ac153 beside git diff 2a4ad3043c 261dc7527b), main's three commits b620c4b2c6..2a4ad3043c, record 7214835942, and the check-runs on the head.

Check-runs on the head as read at 09:37Z, 38 in all: 4 success, 9 skipped, 25 in progress, none failed. The four concluded are the path filter, the PR-body guards, Check Documentation Links and Check PR Size. The nine skipped are the opt-in, schedule and queue-only jobs record 7214835942 names. Not concluded at this read: every Lint lane (check:i18n runs in one of them) is in progress, and Test Core is not yet expanded: Plan Test Core shards is in progress and no shard exists, so the platform-objects tests have not started. The Type Check lanes, Spec property liveness, Check Changeset and the Governed Surface Queue Guard are in progress too. This record reads no green on the head; the seat confirms it before landing.

① Derived judgments

No accept-set or public-surface judgment of the earlier rounds moves.

  1. The PR's own change is the same change on the new base. Both diffs name the same 221 paths with the same status, and 9022 added and removed lines each. They differ in three lines of one file, object-lifecycle-panel-echo-decisions.test.ts: the removed assertion reads 844 where it read 841, and the added note and assertion read 845 where they read 842. The other 220 paths carry identical added and removed lines.
  2. The one hand resolution keeps both sides. Main's dated note for Views: a list view cannot be assigned to positions / roles; and a view created in the console 403s when customized in Studio #34908 (844) stays, this PR's note for knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304 follows it, and the positive control reads 845: main's 844 plus this PR's one row, the knowledge_source type's own label. Main's 841 to 844 is its own three rows (two requiredPermissions row labels and the dashboard's access section label). No conflict marker is left in the directory.
  3. The eleven *.metadata-forms.generated.ts bundles text-merged, and the remerge diff shows no hunk for them. Main's rows sit inside the view and dashboard entries; this PR's knowledge_source entry is the last entry of each bundle. The PR's hunk on each bundle is unchanged between the two bases.
  4. Main's three commits against this PR. feat(spec): the view and dashboard forms offer the audience gate (requiredPermissions) #37839 gives the existing requiredPermissions key of a view and of a dashboard an authoring row, with its translations, and removes the two omit rows that withheld it. perf(ui): the affected-test selector's verdict does each per-file step once #37869 changes the UI affected-test selector. fix(app-shell): the validation preview names a state machine's empty target as May be cleared #37876 changes the Studio validation preview. None names knowledge_source, its label or its translations; none touches a package-scoped or namespace list, the owner-stamp list or the customization package this PR extends. The only shared paths are the twelve of judgments 2 and 3. Main's *.source-hashes.generated.ts, metadata-form-i18n.ts and metadata-form-zh-cn.ts edits are on paths this PR does not change.

② Semver level

Clause-②: yes (narrowing)

Unchanged. The hop touches neither the changeset nor the PR body. Main's #37839 arrives by merge and is declared on main in its own changeset. Check Changeset is in progress on the head.

③ Boundary flags

SQL push-down: the hop adds no id materialisation and no in-app join, and changes no query.

  1. Conflict resolution: as judgment 2. The count is the sum of two independent arrivals, the same rule record 7214835942 accepted for the 00d616e resolutions.
  2. Generated bundles: text-merged, not regenerated in this hop. Whether the merged bundles are byte-equal to a regeneration is the source gates' answer, and those have not concluded (see the check-run read).
  3. Dev flags: no report on the card names this head, so there is no open_questions entry to answer.
  4. The escalations of the full round stand untouched.

④ Design judgment

On what the hop moves only. The census of translated rows is main's count plus this PR's one label, pinned at the sum, and it is the only line of the PR's change that differs on the new base. Main's audience-row change and this PR's type meet nowhere but in that census and in separate entries of the same generated bundles. Nothing in the hop changes what a knowledge source parses, who may author one, or what a caller is served.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-23bpce
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Landing at 261dc7527bbb002633b5724a365f3e3e3be4f15a. The maintainer approved in the seat thread (2026-11-27 02:12Z, 「37676 批准」), and os-zhuang APPROVED. The narrowing leg's contract record on this head is delta 4, 7214923094 (PASS). It rests on delta 3 7214835942, delta 2 7208323495, delta 1 7208152877 and the full round 7206413701. Seat ACCEPT 7208335574, with notes 7209946198, 7210090045 and 7211991570. Dogfood battery: os-dev report 7215256363 on #37304, run at ae2b4ac153, with one merge of main below this head. CI is green, and mergeable is clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai security size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants